#! user/bin/python
# -*- coding: utf-8 -*-

"""
Created on 2021/8/18 13:58

@File: 派生并行客户端_testecho.py
@Author: LT
@Description: 模拟同时有8个客户端发送连接请求，且服务器降低其处理能力，测试结果显现有的客户端被拒绝连接
"""
import os
import sys

# from ........全局适用代码.一个跨平台的python程序启动框架_python_launchmodes import QuietPortableLauncher
from Python编程_一书学习.全局适用代码.一个跨平台的python程序启动框架_python_launchmodes import QuietPortableLauncher

client_nums = 8


def start(cmdline):
    QuietPortableLauncher(cmdline, cmdline)()


args = ' '.join(sys.argv[:])
for i in range(client_nums):
    start('简单的客户端_echo-client.py %s' % args)
